#include "STC32G_Timer.h"
#include "uart_drv.h"
#include "modbus_user.h"

static volatile u32 tick = 0;

void Timer0_ISR_Handler (void) interrupt TMR0_VECTOR		
{
    tick++;
    if(uart2.timeOut > 0)
        uart2.timeOut--;
}
u32 GetTick(void)
{
    return tick;
}

void Timer1_ISR_Handler (void) interrupt TMR1_VECTOR		
{

}

void Timer2_ISR_Handler (void) interrupt TMR2_VECTOR		
{

}

void Timer3_ISR_Handler (void) interrupt TMR3_VECTOR		
{

}

void Timer4_ISR_Handler (void) interrupt TMR4_VECTOR		
{

}
